<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Home\Controller\Home' => 'Home\Controller\HomeController',
        	'Home\Controller\Canhan' => 'Home\Controller\CanhanController',
			'Home\Controller\Bangdiem' => 'Home\Controller\BangdiemController',   		
			'Home\Controller\Thoikhoabieu' => 'Home\Controller\ThoikhoabieuController',
        	'Home\Controller\Benhnhan' => 'Home\Controller\BenhnhanController',
			'Home\Controller\Lichday' => 'Home\Controller\LichdayController',
			'Home\Controller\Lienhe' => 'Home\Controller\LienheController',
			'Home\Controller\Photo' => 'Home\Controller\PhotoController',
			
        ),
    ),

    'router' => array(
        'routes' => array(
            'Home' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '[/:menu][/:id][/page/:page][/order_by/:order_by][/:order]',
                    'constraints' => array(
                        'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
						'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        
                        'page' => '[0-9]+',
                        'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'order' => 'ASC|DESC',
                    ),
                    'defaults' => array(
                        'controller' => 'Home\Controller\Home',
                        'action'     => 'index',
                    ),
                ),
            ),
			
			'tienich' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/tienich/xemdiem[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
                    'constraints' => array(
                        'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
						'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'page' => '[0-9]+',
                        'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'order' => 'ASC|DESC',
                    ),
                    'defaults' => array(
                        'controller' => 'Home\Controller\Bangdiem',
                        'action'     => 'index',
                    ),
                ),
            ),
			
			'xemthoikhoabieu' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/tienich/thoikhoabieu[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
                    'constraints' => array(
                        'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
						'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'page' => '[0-9]+',
                        'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'order' => 'ASC|DESC',
                    ),
                    'defaults' => array(
                        'controller' => 'Home\Controller\Thoikhoabieu',
                        'action'     => 'index',
                    ),
                ),
            ),
        		
        	'xembenhnhan' => array(
        				'type'    => 'segment',
        				'options' => array(
        						'route'    => '/tienich/benhnhan[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
        						'defaults' => array(
        								'controller' => 'Home\Controller\Benhnhan',
        								'action'     => 'index',
        						),
        				),
        	),
			
			'xemlichday' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/tienich/lichday[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
                    'constraints' => array(
                        'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
						'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'page' => '[0-9]+',
                        'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'order' => 'ASC|DESC',
                    ),
                    'defaults' => array(
                        'controller' => 'Home\Controller\Lichday',
                        'action'     => 'index',
                    ),
                ),
            ),
			
			'lienhe' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/lien-he[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
                    'constraints' => array(
                        'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
						'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'page' => '[0-9]+',
                        'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'order' => 'ASC|DESC',
                    ),
                    'defaults' => array(
                        'controller' => 'Home\Controller\Lienhe',
                        'action'     => 'index',
                    ),
                ),
            ),
			
			'hinhanh' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/tienich/hinhanh[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
                    'constraints' => array(
                        'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
						'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                        'page' => '[0-9]+',
                        'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'order' => 'ASC|DESC',
                    ),
                    'defaults' => array(
                        'controller' => 'Home\Controller\Photo',
                        'action'     => 'index',
                    ),
                ),
            ),
        		'canhan' => array(
        				'type'    => 'segment',
        				'options' => array(
        						'route'    => '/tienich/canhan[/:action][/:id][/page/:page][/order_by/:order_by][/:order]',
        						'constraints' => array(
        								'action' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
        								'menu' => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
        								'id'     => '(?!\bpage\b)(?!\border_by\b)[a-zA-Z][a-zA-Z0-9_-]*',
        								'page' => '[0-9]+',
        								'order_by' => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'order' => 'ASC|DESC',
        						),
        						'defaults' => array(
        								'controller' => 'Home\Controller\Canhan',
        								'action'     => 'index',
        						),
        				),
        		),
        ),
    ),

    'view_manager' => array(
		
        'template_path_stack' => array(
            'home' => __DIR__ . '/../view',
        ),
        'template_map' => array(
			'layout/home'           => __DIR__ . '/../view/layout/layout.phtml',
            'paginator-slide' => __DIR__ . '/../view/layout/slidePaginator.phtml',
        ),
    ),
	
	'module_layouts' => array(
      'Home' => array(
          'default' => 'layout/home',
          
        )
     ),
);